package com.thinkgem.jeesite.cn.yy.serviceimpl;

import com.thinkgem.jeesite.cn.yy.service.ActLogService;
import com.thinkgem.jeesite.cn.yy.utils.Paging;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @description jws24
 * @method  2017/11/20

 * @return
 * @date: 2017/11/20 10:40
 * @author:jiangwenshu
 */
@Service
@Transactional
public class ActLogServiceImpl implements ActLogService {
    @Resource
    private ActLogService actLogService;

    /**
     * 日志全查
     * @return
     */
    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public List<Map<String,String>> getActLog(Paging paging) {
        return actLogService.getActLog(paging);
    }
//
    /**
     * 总页数
     * @return
     */
    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public int getActLogPage() {
        return actLogService.getActLogPage();
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public void saveTableAction(
            @Param("act_id") String actId,
            @Param("act_name") String actName,
            @Param("act_time") String actTime,
            @Param("pro_id") String proId,
            @Param("tab_id") String tabId) {
        actLogService.saveTableAction(actId,actName,actTime,proId,tabId);
    }


} 